
package com.gitee.jmash.oidc.oauth2.models;

import com.gitee.jmash.oidc.oauth2.enums.GrantType;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;

/**
 * /oauth/token Model.
 *
 * @author CGD
 *
 */
public class TokenPasswordModel {

  @NotNull
  private GrantType grantType;

  @NotBlank
  private String clientId;

  @NotBlank
  private String clientSecret;

  /** 资源所有者用户名. */
  @NotBlank
  private String username;

  /** 资源所有者密码. */
  @NotBlank
  private String password;

  public String getClientId() {
    return clientId;
  }

  public void setClientId(String clientId) {
    this.clientId = clientId;
  }

  public String getClientSecret() {
    return clientSecret;
  }

  public void setClientSecret(String clientSecret) {
    this.clientSecret = clientSecret;
  }

  public GrantType getGrantType() {
    return grantType;
  }

  public void setGrantType(GrantType grantType) {
    this.grantType = grantType;
  }

  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  public String getPassword() {
    return password;
  }

  public void setPassword(String password) {
    this.password = password;
  }

}
